package cn.kaguyaever.entity;

import java.io.Serializable;

public class Vote implements Serializable {

    private String vote;
    private String name;
    private String projectId;
    private String winner;
    private Integer voteStatus = 0;
    private Integer num = 0;

    public Vote() {
    }

    public Vote(String voteId, String name, String projectId, String winner, Integer voteStatus, Integer num) {
        this.vote = voteId;
        this.name = name;
        this.projectId = projectId;
        this.winner = winner;
        this.voteStatus = voteStatus;
        this.num = num;
    }

    public String getVoteId() {
        return vote;
    }

    public void setVoteId(String voteId) {
        this.vote = voteId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getP() {
        return projectId;
    }

    public void setP(String projectId) {
        this.projectId = projectId;
    }

    public String getWinner() {
        return winner;
    }

    public void setWinner(String winner) {
        this.winner = winner;
    }

    public Integer getVoteStatus() {
        return voteStatus;
    }

    public void setVoteStatus(Integer voteStatus) {
        this.voteStatus = voteStatus;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Vote{" +
                "voteId='" + vote + '\'' +
                ", title='" + name + '\'' +
                ", projectId='" + projectId + '\'' +
                ", winner='" + winner + '\'' +
                ", voteStatus=" + voteStatus +
                ", num=" + num +
                '}';
    }
}
